﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mfChatMessageList.aspx.cs" Inherits="msBsc.WebUi.mMall.Seller.mfChatMessageList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>手机地接客商城</title>
    <%=getMeta()%>
    <link rel="stylesheet" type="text/css" href="/themes/mStyle1/mGlobal.css" charset="gbk" />
    <link rel="stylesheet" type="text/css" href="/themes/mStyle1/css/home/base.css" charset="gbk" />
    <link href="/themes/mStyle1/css/public/mChatMessageList.css" rel="stylesheet" charset="gbk" />
    <%=getBodyBeforeJs()%>
    <style type="text/css">
      
    </style>
</head>
<body>
    <div class="viewport" style="background: #edeeee;">
        <%=msBsc.WebUi.Code.QtHtmlGet.GetWapHeaderMenuHtml(true) %>
        <form action='#' method="post" id="J_EmailForm">
            <div class="pageInfo">
                共有未读
                <span id="sumCount" style="color: red">0</span>
                条消息
            </div>
            <ul class="m_chat" id="chat_list">
              
            </ul>
            <xmp id="svc_list_temp_message" style="display: none">
                {{#for(var i=0,len=d.rows.length;i < len;i++){ }}
              <li>
                    <div class="u_head">
                        <a class="ul_img_head" href="/ms_ChatMessage.htm?receiveId={{d.rows[i]["id"]}}&receiveName={{d.rows[i]["name"]}}">
                            <img src="{{d.rows[i]["face"]}}" />
                        </a>

                    </div>
                    <div class="ulc_message">
                        <a class="ulc_messageInfo" href="/ms_ChatMessage.htm?receiveId={{d.rows[i]["id"]}}&receiveName={{d.rows[i]["name"]}}">{{d.rows[i]["name"]}}</a>
                    </div>
                </li>
                {{#} }}
                 </xmp>
        </form>

    </div>
    <!--start JS引用-->
    <script type="text/javascript" src="/jqPlugin/js/jquery-1.8.3.min.js" charset="gbk"></script>
    <script type="text/javascript" src="/jqPlugin/js/jBase.js" charset="gbk"></script>
    <script type="text/javascript" src="/jqPlugin/js/jBPage.js" charset="gbk"></script>
    <script type="text/javascript" src="/themes/Style1/jsQt.js" charset="gbk"></script>
    <script type="text/javascript" src="/jqPlugin/js/laytpl.js" charset="gbk"></script>
    <script type="text/javascript" src="/themes/wStyle1/js/comm/VerifyJs.js" charset="gbk"></script>
    <script type="text/javascript" src="/themes/wStyle1/js/comm/DateInfo.js" charset="gbk"></script>
    <!--end JS引用-->
    <script type="text/javascript">
        (function () {
            $("#h_title").text("未读消息列表");
            $.getMessageCount();
        })();

        function showMessageList(data) {
            $("#sumCount").text(data.rows.length)
            var _html = $('#svc_list_temp_message').html();
            laytpl(_html).render(data, function (render) {
                $('#chat_list').html(render);
            });
        }

        function getMessage() {
            var opart = new jsonRow();
            opart.AddCell("ACTION", "init");
            ajaxComm(opart);
        }
        getMessage();
    </script>
</body>
<%=getBodyAfterJs() %>
</html>
